package com.shd.edanpei.presenter.contract;

import com.shd.edanpei.base.BaseIPresenter;
import com.shd.edanpei.base.BaseIView;
import com.shd.edanpei.bean.TeamModel;

/**
 * Created by mc on 2018/11/20.
 * yang-wen-wen
 */

public interface TeamContract {

    interface TeamIView extends BaseIView {

        /**
         * 已加入团队
         */
        void haveTeam(TeamModel data);

        /**
         * 未加入团队
         */
        void noTeam();

        void clickExit();

        void cancelExit();
    }

    interface TeamIPresenter extends BaseIPresenter {

        /**
         * 查询团队信息
         */
        void queryTeamInfo();

        /**
         * 加入团队
         *
         * @param code 团队码
         */
        void joinTeam(String code);

        /**
         * 退出团队
         */
        void exitTeam(int state);
    }
}
